package sg.edu.nus.iss.team8s.vmcs.Listener;
/**
 * 
 * @author Nie Xiaoyi
 * 
 */
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import sg.edu.nus.iss.team8s.vmcs.control.MainController;
import sg.edu.nus.iss.team8s.vmcs.control.SimulationController;

public class EndSimulationButtonListener implements ActionListener{

	private SimulationController simController;
	
	public EndSimulationButtonListener(SimulationController simController){
		this.simController = simController;
	}
	
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		simController.SetSimulationActive(false);
		MainController mainController = new MainController();
		mainController.closeDown();
	}

}
